<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商务风格表格的设计与实现</title>

    <style>
        tr,
        th,
        td {
            border: 1px solid orange;
        }
        
        th {
            background-color: #f7ad26;
        }
        
        th,
        td {
            width: 100px;
            text-align: center;
        }
        
        tr:nth-child(2n) {
            background-color: #fceed4;
        }
    </style>
</head>

<body>
    <h3>商务风格表格的设计与实现</h3>
    <br>
    <hr><br>
    <table cellspacing="0" cellpadding="0">
        <caption>学生信息表</caption>
        <tr>
            <th>学号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>年级</th>
            <th>班级</th>
        </tr>
        <tr>
            <td>2019210001</td>
            <td>小张</td>
            <td>男</td>
            <td>2019</td>
            <td>01041902</td>
        </tr>
        <tr>
            <td>2019210001</td>
            <td>小张</td>
            <td>男</td>
            <td>2019</td>
            <td>01041902</td>
        </tr>
        <tr>
            <td>2019210001</td>
            <td>小张</td>
            <td>男</td>
            <td>2019</td>
            <td>01041902</td>
        </tr>
        <tr>
            <td>2019210001</td>
            <td>小张</td>
            <td>男</td>
            <td>2019</td>
            <td>01041902</td>
        </tr>
        <tr>
            <td>2019210001</td>
            <td>小张</td>
            <td>男</td>
            <td>2019</td>
            <td>01041902</td>
        </tr>

    </table>

</body>

</html>